#include "postdatahandler.h"

PostDataHandler::PostDataHandler(QHttpRequest *request, QHttpResponse *response, QObject *parent) :
    QObject(parent)
{
    this->m_request = request;
    this->m_response = response;

    request->storeBody();
    connect(request, SIGNAL(end()),this,SLOT(onEnd()));
}

void PostDataHandler::onEnd()
{
    emit postDataEnd(this->m_request, this->m_response);
}
